<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
	
</script>
<div class="pageContent">
	<form method="post" action="userRole_${empty usrId ? "
		add":"edit" }.action"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input name="usrId" type="hidden" value="${usrId}" />
		<div class="pageFormContent nowrap" layoutH="60">
			<c:if test="${empty usrId}">
			<dl>
				<dt>
					<label>所属用户组:</label>
				</dt>
				<select name="usgId" id="usgId" class="combox">
					<c:forEach items="${userGroupList}" var="userGroup">
						<%--
						<option value="${userGroup.usgCode}"
						<c:if test="${userGroup.usgCode==sysUserGroup.usgCode}">selected</c:if>>${userGroup.usgName}</option>
						 --%>
						 <option value="${userGroup.usgId}"
						<c:if test="${userGroup.usgId==sysUserGroup.usgId}">selected</c:if>>${userGroup.usgName}</option>
						 
					</c:forEach>
				</select>
			</dl>
			</c:if>
			<dl>
				<dt>
					<label>角色名称：</label>
				</dt>
				<input type="text" class="required" name="usrName"
					maxlength="20" id="usrName" value="${usrName}" />
			</dl>
			<dl>
				<dt>
					<label>数据权限：</label>
				</dt>
				<select name="usrDataRange" id="usrDataRange" class="combox">
					<option value="0" ${usrDataRange==0?"selected":"" }>全部数据</option>
					<option value="1" ${usrDataRange==1?"selected":"" }>部门数据</option>
					<option value="2" ${usrDataRange==2?"selected":"" }>个人数据</option>
				</select>
			</dl>

		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>